﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CustomExceptionHandling
{
    class NotEnoughIngredientException : Exception
    {
        public NotEnoughIngredientException() : base() { }
        public NotEnoughIngredientException(string message) 
            : base(message) { }
        public NotEnoughIngredientException(string message, Exception innerException)
            : base( message, innerException) { }
        public NotEnoughIngredientException(string ingredient, string message)
            :base(message)
        {
            MissingIngredient = ingredient;
        }
        public string MissingIngredient { get; set; }
    }
}
